package com.etc.entity;

import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class Comments {
    private String comId;
    private String comText;
    private String comDate;
    private User user;
    private RoomInfo roomInfo;
    private List<Comments2> list;

    public List<Comments2> getList() {
        return list;
    }

    public void setList(List<Comments2> list) {
        this.list = list;
    }

    public String getComId() {
        return comId;
    }

    public void setComId(String comId) {
        this.comId = comId;
    }

    public String getComText() {
        return comText;
    }

    public void setComText(String comText) {
        this.comText = comText;
    }

    public String getComDate() {
        return comDate;
    }

    public void setComDate(String comDate) {
        this.comDate = comDate;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public RoomInfo getRoomInfo() {
        return roomInfo;
    }

    public void setRoomInfo(RoomInfo roomInfo) {
        this.roomInfo = roomInfo;
    }

    public Comments(String comId, String comText, String comDate, User user, RoomInfo roomInfo) {
        this.comId = comId;
        this.comText = comText;
        this.comDate = comDate;
        this.user = user;
        this.roomInfo = roomInfo;
    }

    public Comments(String comId, String comText, String comDate, User user, RoomInfo roomInfo, List<Comments2> list) {
        this.comId = comId;
        this.comText = comText;
        this.comDate = comDate;
        this.user = user;
        this.roomInfo = roomInfo;
        this.list = list;
    }

    public Comments(String comText, String comDate) {
        this.comText = comText;
        this.comDate = comDate;
    }

    public Comments() {
    }

    @Override
    public String toString() {
        return "Comments{" +
                "comId='" + comId + '\'' +
                ", comText='" + comText + '\'' +
                ", comDate='" + comDate + '\'' +
                ", user=" + user +
                ", roomInfo=" + roomInfo +
                '}';
    }
}
